// src\pages\Detail.jsx
import React from 'react'
import { useParams } from 'react-router-dom'
export default function Detail() {
    // 获取URL中携带过来的params参数
    console.log("Detail", useParams());
    const { id, title, content } = useParams();
    return (
        <div>
            <ul>
                <li>id：{id}</li>
                <li>title：{title}</li>
                <li>content:{content}</li>
            </ul>
        </div>
    )
}
